package cloud.code.serverOne.web.dto;

import java.io.Serializable;
import java.util.Set;

/**
 * 保存用户登陆后的状态
 * Created by zhanghaichao on 2019/12/17.
 */
public class UserLoginSessionDto implements Serializable {
    private static final long serialVersionUID = 2698761684261280265L;

    private String userId;

    private String username;
    private String loginName;

    private String password;

    /**
     * 角色对应权限集合
     */
    private Set<String> permissions;

    /**
     * 用户对应的角色集合
     */
    private Set<String> roles;

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Set<String> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<String> permissions) {
        this.permissions = permissions;
    }

    public Set<String> getRoles() {
        return roles;
    }

    public void setRoles(Set<String> roles) {
        this.roles = roles;
    }
}
